package com.by.controller;

import com.by.bean.InvoicesBean;
import com.by.common.bean.ResultBean;
import com.by.common.controller.BaseController;
import com.by.service.InvoicesService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:
 * @date: 2025/2/19
 * @version: 1.01
 * @since: jdk11
 */
@RequestMapping("/api")
@RestController
@Api(tags = "基础信息表")
public class InvoicesController extends BaseController {
    @Autowired
    InvoicesService invoicesService;
    @ApiOperation("保存基本信息")
    @PostMapping("bcxx")
    public ResultBean save(InvoicesBean invoicesBean){
        int rs = invoicesService.save(invoicesBean);
        return saveResult(rs);
    }
}
